package com.huangpeng.designmodel.builder;

import com.huangpeng.designmodel.entity.Goods;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * @Author huangpeng
 * @Title 模拟一个税率生成器
 * @Package
 * @Date 2020/10/22 11:30
 * @Description 模拟一个税率生成器
 * @Version 1.0
 */
public class GoodsBuilder {
    public static List<Goods> generateReceiptList(){
        //直接模拟一堆需要计算税费的数据集合
        List<Goods> goodsList = new ArrayList<>();
        goodsList.add(new Goods(1,"衣服",new BigDecimal("2000.00")));
        goodsList.add(new Goods(2,"夹克",new BigDecimal("3000.00")));
        goodsList.add(new Goods(3,"裤子",new BigDecimal("1000.00")));
        goodsList.add(new Goods(4,"鞋子",new BigDecimal("2000.00")));
        goodsList.add(new Goods(5,"袜子",new BigDecimal("2000.00")));
        //...
        return goodsList;
    }
}
